#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_CONFIG_SRCDIR([Game2/LockedObstacle.h])
AC_CONFIG_HEADERS([config.h])

# Set up automake
AM_INIT_AUTOMAKE("game", "0.1")

# Checks for programs.
AC_PROG_CXX

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lGLU':
#AC_CHECK_LIB(GL, glLoadIdentity, [], [
#	echo "Error: Need libGL.a"
#	exit -1
#])
AC_CHECK_LIB(SOIL, SOIL_last_result, [], [
	echo "Error: Need libSOIL.a"
	exit -1
])
AC_CHECK_LIB(glut, glutInit, [], [
	echo "Error: Need libglut.a"
	exit -1
])

##AC_CHECK_LIB(glut, glLoadIdentity, [], [
##	echo "Error: Need libglut.a"
##	exit -1
##])

# Checks for header files.
AC_CHECK_HEADERS([stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE

# Checks for library functions.
AC_CHECK_FUNCS([floor pow sqrt])

AC_CONFIG_FILES([Game2/Makefile
                 Makefile])
AC_OUTPUT
